package com.maistars.spider.service.store;

import com.maistars.spider.common.exception.TopicSpiderException;

import java.util.List;
import java.util.Map;

/**
 * @author dhr
 * @date 2021/9/5 下午11:31
 */
public interface CapturedPageStore {

    void writeColumnNames() throws TopicSpiderException;

    void writeSuccessUrls(int level, List<String> urls) throws TopicSpiderException;

    void writeErrorUrls(int level, List<String> urlErrorMsgs) throws TopicSpiderException;

    List<String> readColumnNames() throws TopicSpiderException;

    Map<Integer,List<String>> readSuccessUrls() throws TopicSpiderException;

    Map<Integer,List<String>> readErrorUrls() throws TopicSpiderException;


}
